home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 8.5 KB | 472 lines | [TEXT/MPS ] |
- ;
- ; File: Icons.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
- __ICONS__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'QuickdrawText.a' ;
-
- ; The following are icons for which there are both icon suites and SICNs.
- genericDocumentIconResource EQU -4000
- genericStationeryIconResource EQU -3985
- genericEditionFileIconResource EQU -3989
- genericApplicationIconResource EQU -3996
- genericDeskAccessoryIconResource EQU -3991
- genericFolderIconResource EQU -3999
- privateFolderIconResource EQU -3994
- floppyIconResource EQU -3998
- trashIconResource EQU -3993
- ; The following are icons for which there are SICNs only.
- desktopIconResource EQU -3992
- openFolderIconResource EQU -3997
- genericHardDiskIconResource EQU -3995
- genericFileServerIconResource EQU -3972
- genericSuitcaseIconResource EQU -3970
- genericMoverObjectIconResource EQU -3969
- ; The following are icons for which there are icon suites only.
- genericPreferencesIconResource EQU -3971
- genericQueryDocumentIconResource EQU -16506
- genericExtensionIconResource EQU -16415
- systemFolderIconResource EQU -3983
- appleMenuFolderIconResource EQU -3982
-
- startupFolderIconResource EQU -3981
- ownedFolderIconResource EQU -3980
- dropFolderIconResource EQU -3979
- sharedFolderIconResource EQU -3978
- mountedFolderIconResource EQU -3977
- controlPanelFolderIconResource EQU -3976
- printMonitorFolderIconResource EQU -3975
- preferencesFolderIconResource EQU -3974
- extensionsFolderIconResource EQU -3973
- fontsFolderIconResource EQU -3968
- fullTrashIconResource EQU -3984
- large1BitMask EQU 'ICN#'
- large4BitData EQU 'icl4'
- large8BitData EQU 'icl8'
- small1BitMask EQU 'ics#'
- small4BitData EQU 'ics4'
- small8BitData EQU 'ics8'
- mini1BitMask EQU 'icm#'
- mini4BitData EQU 'icm4'
- mini8BitData EQU 'icm8'
-
- ; alignment type values
- atNone EQU $0
- atVerticalCenter EQU $1
- atTop EQU $2
- atBottom EQU $3
- atHorizontalCenter EQU $4
- atAbsoluteCenter EQU atVerticalCenter | atHorizontalCenter
- atCenterTop EQU atTop | atHorizontalCenter
- atCenterBottom EQU atBottom | atHorizontalCenter
- atLeft EQU $8
- atCenterLeft EQU atVerticalCenter | atLeft
- atTopLeft EQU atTop | atLeft
- atBottomLeft EQU atBottom | atLeft
- atRight EQU $C
- atCenterRight EQU atVerticalCenter | atRight
- atTopRight EQU atTop | atRight
- atBottomRight EQU atBottom | atRight
-
- ; transform type values
- ttNone EQU $0
- ttDisabled EQU $1
- ttOffline EQU $2
- ttOpen EQU $3
- ttLabel1 EQU $0100
- ttLabel2 EQU $0200
- ttLabel3 EQU $0300
- ttLabel4 EQU $0400
- ttLabel5 EQU $0500
- ttLabel6 EQU $0600
- ttLabel7 EQU $0700
- ttSelected EQU $4000
- ttSelectedDisabled EQU ttSelected | ttDisabled
- ttSelectedOffline EQU ttSelected | ttOffline
- ttSelectedOpen EQU ttSelected | ttOpen
-
- ; Selector mask values
- svLarge1Bit EQU $00000001
- svLarge4Bit EQU $00000002
- svLarge8Bit EQU $00000004
- svSmall1Bit EQU $00000100
- svSmall4Bit EQU $00000200
- svSmall8Bit EQU $00000400
- svMini1Bit EQU $00010000
- svMini4Bit EQU $00020000
- svMini8Bit EQU $00040000
- svAllLargeData EQU $000000ff
- svAllSmallData EQU $0000ff00
- svAllMiniData EQU $00ff0000
- svAll1BitData EQU svLarge1Bit | svSmall1Bit | svMini1Bit
- svAll4BitData EQU svLarge4Bit | svSmall4Bit | svMini4Bit
- svAll8BitData EQU svLarge8Bit | svSmall8Bit | svMini8Bit
- svAllAvailableData EQU $ffffffff
-
- IF ¬ OLDROUTINELOCATIONS THEN
- CIcon RECORD 0
- iconPMap ds PixMap ;the icon's pixMap
- iconMask ds BitMap ;the icon's mask
- iconBMap ds BitMap ;the icon's bitMap
- iconData ds.l 1 ;the icon's data
- iconMaskData ds.w 1 ;icon's mask and BitMap data
- sizeof EQU 84
- ENDR
-
- IF GENERATING68K THEN
- _GetCIcon: OPWORD $AA1E
- ELSE
- IMPORT GetCIcon
- ENDIF
-
- IF GENERATING68K THEN
- _PlotCIcon: OPWORD $AA1F
- ELSE
- IMPORT PlotCIcon
- ENDIF
-
- IF GENERATING68K THEN
- _DisposeCIcon: OPWORD $AA25
- ELSE
- IMPORT DisposeCIcon
- ENDIF
-
- IF GENERATING68K THEN
- _GetIcon: OPWORD $A9BB
- ELSE
- IMPORT GetIcon
- ENDIF
-
- IF GENERATING68K THEN
- _PlotIcon: OPWORD $A94B
- ELSE
- IMPORT PlotIcon
- ENDIF
-
- ENDIF
- IF GENERATING68K THEN
- Macro
- _PlotIconID
- move.w #$0500,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotIconID
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _NewIconSuite
- move.w #$0207,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT NewIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _AddIconToSuite
- move.w #$0608,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT AddIconToSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetIconFromSuite
- move.w #$0609,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetIconFromSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ForEachIconDo
- move.w #$080A,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT ForEachIconDo
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetIconSuite
- move.w #$0501,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _DisposeIconSuite
- move.w #$0302,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT DisposeIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PlotIconSuite
- move.w #$0603,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _MakeIconCache
- move.w #$0604,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT MakeIconCache
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _LoadIconCache
- move.w #$0606,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT LoadIconCache
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PlotIconMethod
- move.w #$0805,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotIconMethod
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetLabel
- move.w #$050B,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetLabel
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PtInIconID
- move.w #$060D,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PtInIconID
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PtInIconSuite
- move.w #$070E,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PtInIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PtInIconMethod
- move.w #$090F,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PtInIconMethod
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _RectInIconID
- move.w #$0610,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT RectInIconID
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _RectInIconSuite
- move.w #$0711,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT RectInIconSuite
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _RectInIconMethod
- move.w #$0912,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT RectInIconMethod
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _IconIDToRgn
- move.w #$0613,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT IconIDToRgn
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _IconSuiteToRgn
- move.w #$0714,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT IconSuiteToRgn
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _IconMethodToRgn
- move.w #$0915,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT IconMethodToRgn
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SetSuiteLabel
- move.w #$0316,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT SetSuiteLabel
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetSuiteLabel
- move.w #$0217,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetSuiteLabel
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetIconCacheData
- move.w #$0419,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetIconCacheData
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SetIconCacheData
- move.w #$041A,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT SetIconCacheData
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetIconCacheProc
- move.w #$041B,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT GetIconCacheProc
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _SetIconCacheProc
- move.w #$041C,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT SetIconCacheProc
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PlotIconHandle
- move.w #$061D,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotIconHandle
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PlotSICNHandle
- move.w #$061E,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotSICNHandle
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _PlotCIconHandle
- move.w #$061F,d0
- dc.w $ABC9
- EndM
- ELSE
- IMPORT PlotCIconHandle
- ENDIF
-
- ENDIF ; __ICONS__
-